<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class IndexController extends Controller
{
   public function index(Request $request){
       if ($request->session()->has('user')){
           $request->session()->put('userModel',$request->session()->get('user'));
           return view('admin/IndexViews/index',['foo'=>url('admin/welcome')]);
       }
       echo '你没有权限访问该页面,请登陆';
   }

    public function welcome(){
        return view('admin/IndexViews/welcome');
    }

    public function admin_list(){
        return view('admin/admin-list');
    }

    public function role(){
        return view('admin/admin-role');
    }

    public function permission(){
        return view('admin/admin-permission');
    }

    public function topic(){
        return view('admin/topic-list');
    }

    public function picture(){
        return view('admin/picture-list');
    }


}
